using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;

public class CanvasScript : MonoBehaviour
{
    public PauseMenu menu;
    
    public void OnUI()
    {
        if (!menu.gameObject.activeSelf)
        {
            menu.Pause();
        }
        else
        {
            menu.Resume();
        }
        
    }
}
